#include <iostream>
#include <signal.h>
#include <string>

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        std::cerr << "Usage: " << argv[0] << " -signumber pid" << std::endl;
        return 1;
    }

    int number=std::stoi(argv[1]);
    pid_t pid=std::stoi(argv[2]);

    int n=kill(pid,number);
    if(n==0)
    {
        std::cout << "Process " << pid << " sent signal " << number << std::endl;
    }

    return 0;

}